package com.qumitech.visualnovel.datasource.app;

import com.qumitech.visualnovel.pubdef.dto.user.UserGuardRecordDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GuardMapper {

    List<UserGuardRecordDTO> listGuard(@Param("fromId") Long fromId,
                                    @Param("toId") Long toId,
                                    @Param("startTime") String startTime,
                                    @Param("endTime") String endTime,
                                    @Param("orderBy") String orderBy,
                                    @Param("orderType") String orderType,
                                    @Param("offset") int offset,
                                    @Param("limit") int limit);

    int countGuard(@Param("fromId") Long fromId,
                   @Param("toId") Long toId,
                   @Param("startTime") String startTime,
                   @Param("endTime") String endTime);

}